﻿using Microsoft.EntityFrameworkCore;
using Model;

namespace Dal
{
    public class MyContext : DbContext
    {
        private readonly DbContextOptions options;

        /// <summary>
        /// 用增删改查
        /// </summary>
        /// <param name="options">构造函数</param>
        public MyContext(DbContextOptions options) : base(options)
        {
            this.options = options;
        
        }
        /// <summary>
        ///管理员表
        /// </summary>
         public DbSet<UserMager> userMagers { get; set; }

         public DbSet<Stare> stares { get; set; }


         public DbSet<StarePtea> starePteas { get; set; }

         public DbSet<Pgass> pgasses { get; set; }




    }
}
